import request from '@/utils/request'

// 查询 客户余额列表
export function listCustomerbalances(query) {
  return request({
    url: '/CustomerbalancesMain/customerbalances/list',
    method: 'get',
    params: query
  })
}

// 查询 客户余额详细
export function getCustomerbalances(customerId) {
  return request({
    url: '/CustomerbalancesMain/customerbalances/' + customerId,
    method: 'get'
  })
}

// 新增 客户余额
export function addCustomerbalances(data) {
  return request({
    url: '/CustomerbalancesMain/customerbalances',
    method: 'post',
    data: data
  })
}

// 修改 客户余额
export function updateCustomerbalances(data) {
  return request({
    url: '/CustomerbalancesMain/customerbalances',
    method: 'put',
    data: data
  })
}

// 删除 客户余额
export function delCustomerbalances(customerId) {
  return request({
    url: '/CustomerbalancesMain/customerbalances/' + customerId,
    method: 'delete'
  })
}
